package com.wenyl.juc.thread.readWriteLockTest;

/**
 * @author Swimming Dragon
 * @description: TODO
 * @date 2024年11月07日 12:06
 */
public class Test {
    public static void main(String[] args) {
        MyCount myCount = new MyCount("11",10000);
        User user = new User("张三",myCount);
        for(int i=0;i<5;i++){
            user.getCash();
            user.setCash((i+1)*1000);
        }
    }
}
